<?php

$____s____=$_POST['s'];


$____s____=explode(PHP_EOL, $____s____);

$z=[];

for ($i=0; $i < count($____s____); $i++) { 

	$key="";
	$key=str_replace("[", " ", trim(explode(":",$____s____[$i])[0]));
	$key=trim(str_replace("]","",$key));

	$value="";
	$value=str_replace("[", " ", trim(explode(":",$____s____[$i])[1]));
	$value=trim(str_replace("]","",$value));
	$z[$i]=[$key=>$value];
}
array_pop($z);

// file_put_contents("abc.txt",json_encode($z,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT));

echo json_encode($z,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);